package com.sxz.sbs.app;

/**
 * 系统常量
 * @author hp
 */

public interface AppConstant {
    /**
     * 是否是debug版本
     */
    boolean isDebug = false;
    /**
     * 是否打开log
     */
    boolean isOpenLog = true;
    /**
     * 基本url   http://120.27.27.144/
     */
    String BASE_URL = "http://120.27.27.144:8080/";
    String HOST_URL = isDebug?"SXZTEST":"SXZ";
    String SEND_CODE = isDebug?"TEST/":"/";
    //String BASE_URL = isDebug?"http://192.168.0.24:8080/":"http://91tcw.cn/";

    //String BASE_URL = isDebug?"http://192.168.0.68:8080/":"http://91tcw.cn/";

    /**
     * 微信二维码支付
     * demo: http://192.168.1.5:8080/weixPay/pay.html?ordermoney=800000
     */
    String WEIXIN_PAY_URL = "http://120.27.27.144:8080/weixPay/pay.html?ordermoney=";
    /**
     * 网络错误类型
     */
    int NET_ERROR_CODE = 3;
    /**
     * 默认每页请求数
     */
    int PAGE_SIZE = 10;
    /**
     * 偏好文件设置
     */
    class Preference {
        public static final String JPUSH_SET_RESULT = "jpush_set_result";
        public static final String PREFERENCE_NAME = "stall_business";
        public static final String TOKEN = "token_value";
        public static final String USER_NAME = "user_name";
        public static final String USER_PSW = "user_psw";
        public static final String IS_GUIDED = "is_guided";
    }

    /**
     * 常用配置
     */
    class Config {
        /**
         * 短信倒计时  单位：ms
         */
        public static final int MESSAGE_COUNT_DOWN = 60000;
    }

}
